//
//  User.m
//  fGeekApp
//
//  Created by Administrator on 15/3/7.
//  Copyright (c) 2015年 cwx. All rights reserved.
//

#import "User.h"

@implementation User

-(User *)initUserInstanceByDict:(NSDictionary *)dict{
    
    if (self = [super init]) {
        
        self.userID = [[dict valueForKey:@"user_id"]integerValue];
        self.userName = [dict valueForKey:@"user_name"];
        self.userNickName = [dict valueForKey:@"user_nickName"];
        self.userPassword = [dict valueForKey:@"user_password"];
        self.userTelephone = [dict valueForKey:@"user_telephone"];
        self.userHeadImage = [dict valueForKey:@"user_headImage"];
        self.userSex = [[dict valueForKey:@"user_sex"] integerValue];
        self.userMarryStatus = [[dict valueForKey:@"user_marryStatus"] integerValue];

    }
    
    return self;
}

+(User *)getUserInstanceByDict:(NSDictionary *)dict{
    return [[self alloc]initUserInstanceByDict:dict];
}

@end
